package com.woniuxy.service;

import com.woniuxy.pojo.Communication;
import com.woniuxy.util.DataGridView;

public interface CommunicationService {

    public DataGridView selectCommunicationByCommCustNo(String commCustNo);

    /**
     * 增加交往记录
     * @param
     * @return
     */
    public boolean addCommunication(Communication communication);

    /**
     * 通过编号查交往记录，后后面添加记录准备
     * @param commNo
     * @return
     */
    public Communication selectCommunicationBylinkNo(String commNo);

    /**
     * 删除交往记录
     * @param
     */
    public void deleteCommunicationBycommNo(String commNo);

    /**
     * 批量删除交往记录
     * @param
     */
    public void removeBatchCommunication(String[] commNos);

    /**
     * 更新交往记录
     * @param
     */
    public void updateCommunication(Communication communication);
}
